import api from "../../api/api.js"

const dict = defineStore(
	'dict',
	{
		namespaced: true,
		state: () => ({
			dictList: new Array()
		}),
		actions: {
			initDict(context) {
				return new Promise((resolve,reject)=>{
					api.appDictInit().then(data=>{
						this.dictList = data
					})
				})
			},
		}
	}
)
export default dict